package com.snake.springboot.custom.dao.mybatis.mappers.base;

import com.snake.springboot.custom.dao.mybatis.entity.base.CustPointsDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface CustPointsMapper {
    int deleteByPrimaryKey(String custPointsId);

    int insert(CustPointsDO record);

    int updateByPrimaryKeySelective(CustPointsDO record);

    int batchInsert(@Param("list") List<CustPointsDO> list);

    void add(@Param("customId") String customId, @Param("changePoints") BigDecimal changePoints);

    void reduce(@Param("customId") String customId, @Param("changePoints") BigDecimal changePoints);


    CustPointsDO queryByCustomId(String customId);

    int freeze(CustPointsDO custPointsDO);

    int thaw(CustPointsDO custPointsDO);

    int reduceFreeze(CustPointsDO custPointsDO);

}